#pragma once

#include <QWidget>
#include "ui_MyItem.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MyItemClass; };
QT_END_NAMESPACE

class MyItem : public QWidget
{
	Q_OBJECT

public:
	MyItem(const QColor& color, int index, QWidget* parent = nullptr);
	~MyItem();
protected:
	void paintEvent(QPaintEvent* event)override;
private:
	Ui::MyItemClass* ui;
	QColor m_color;
};
